import { h } from 'vue';
import { NTag } from 'naive-ui';
export const columns = [
  {
    title: '员工姓名',
    key: 'name',
  },
  {
    title: '所属项目',
    key: 'projectName',
  },
  {
    title: '申报日期',
    key: 'declareDate',
  },
  {
    title: '消耗工时',
    key: 'workingHours',
  },
  {
    title: '提交时间',
    key: 'createdTime',
  },
  {
    title: '状态',
    key: 'status',
    render(row) {
      return h(
        NTag,
        {
          type: row.status === 1 ? 'success' : 'error',
        },
        {
          default: () => (row.status === 1 ? '正常' : '暂存'),
        }
      );
    },
  },
   {
    title: '备注',
    key: 'remark',
  },
];
